import request from '@/request'

export function addLike(data) {
  return request({
    url: '/like/addLike',
    method: 'post',
    data
  })
}

export function cancelLike(data) {
  return request({
    url: '/like/cancelLike',
    method: 'delete',
    data
  })
}

export function getLike(data) {
  return request({
    url: '/like/getLike',
    method: 'post',
    data
  })
}